package com.example.demothree.service;


import com.example.demothree.bean.Employee;
import com.example.demothree.bean.Managers;
import com.example.demothree.bean.UserName;

import javax.servlet.http.HttpServletRequest;

public interface LoginService {
    //用户
    public Employee loginname(String username);
    //用户id
    public Employee findbyId(Long id);
    //管理员
    public Managers adminname(String username);
    //管理员id
    public Managers findglybyId(Long id);
    //添加用户
    public Employee addyh(Employee employee);
    //修改用户
    public void upyh(Employee employee,Long id);
    //name查询
    public Employee findByName(String name);
    //退出方法
    public void outLogin(HttpServletRequest request);
    //name查询
    public UserName findUserNameByName(String name);
    //id查询用户
    public Employee findemployeeId(Long id);
    //id查询管理员
    public UserName findmanagersId(Long id);
    //添加管理员
    public Managers addgly(Managers managers);
    //修改管理员
    public void upgly(Managers managers,Long id);
    //删除用户名
    public void deleteusername(Long id);
}
